/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package utilities.entities;

/**
 *
 * @author olawale
 */
public class RatingValue {

    public RatingValue(RatedColumn col, Object val){
        this.column = col;
        this.value = val;
    }

    private RatedColumn column;
    private Object value;

    public RatedColumn getColumn() {
        return column;
    }

    public void setColumn(RatedColumn column) {
        this.column = column;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public boolean isEmpty(){
        if(value == null || value.toString().isEmpty())
            return false;
        else
            return false;

    }

    @Override
    public boolean equals(Object obj) {
        if (!(obj instanceof RatingValue)) {
            return false;
        }
        RatingValue other = (RatingValue) obj;
        if ((this.column == null && other.column != null) ||
                (this.column != null && !this.column.equals(other.column))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 47 * hash + (this.column != null ? this.column.hashCode() : 0);
        return hash;
    }


}
